package com.ruoyi.client.service.impl;

import com.ruoyi.client.pojo.vo.HomeCarouselVo;
import com.ruoyi.client.mapper.HomeMapper;
import com.ruoyi.client.service.IHomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ClientHomeServiceImpl") ///避免与后台管理的HomeServiceImpl重名
public class HomeServiceImpl implements IHomeService {
    @Resource(name="ClientHomeMapper")  // 注入正确的Bean，在对应mapper中有命名
    private HomeMapper homeMapper;

    @Override
    public List<HomeCarouselVo> getCarouselList(){
        return homeMapper.getCarouselList();
    }
}
